﻿@model IEnumerable<GameSchoolApplication.Models.Person>

@{
    ViewBag.Title = "Aðilar skóla";
	Layout = "~/Views/Shared/_AdministratorLayout.cshtml";
}

<section id="Index">
<h2>Aðilar skóla</h2>

<p>
    @Html.ActionLink("Skrá nýjan aðila", "Create")
</p>
<table class="IndexTable">
    <tr>
        <th>
            Nafn
        </th>
        <th>
            Netfang
        </th>
        <th>
            Hópur
        </th>
        <th>
            Notendanafn
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @item.Name
        </td>
        <td>
            @item.Email
        </td>
        <td>
            @item.Group
        </td>
        <td>
            @item.UserName
        </td>
        <td>
            @Html.ActionLink("Breyta", "Edit", new { id=item.Id }) |
            @Html.ActionLink("Nánar", "Details", new { id=item.Id }) |
            @Html.ActionLink("Eyða", "Delete", new { id=item.Id })
        </td>
    </tr>
}

</table>
</section>